<div class="alert alert-success alert-dismissable">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
    <%- message %>

</div>
<div class="panel panel-info">
<div class="panel-heading"><h4 class="panel-title">公司信息</h4></div>
<form action="/company/upsert/<%=_id?_id:'nil'%>" method="post" class="form-horizontal" id="uform" role="form">
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">名称</label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="name" placeholder="名称">
        </div>
    </div>
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">地址</label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="address" placeholder="地址">
        </div>
    </div>
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">网址</label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="website" placeholder="网址">
        </div>
    </div>
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">联系电话</label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="phone" placeholder="联系电话">
        </div>
    </div>
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">邮箱</label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="email" placeholder="邮箱">
        </div>
    </div>

    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">邮编</label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="postcode" placeholder="邮编">
        </div>
    </div>

    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">简介</label>

        <div class="col-sm-10">
            <textarea class="form-control" name="maindesc" placeholder="公司简介"></textarea>
        </div>
    </div>

    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">微信账号</label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="weichat" placeholder="微信号">
        </div>
    </div>


    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">保存</button>
        </div>
    </div>

</form>
</div>
 <script>
     var beans = <%-beans%>;
     $(function(){
        $("form#uform").helpform({'beans':beans});
     });
 </script>

